<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%String contextRoot = request.getContextPath();%>
<f:loadBundle basename="properties.messages" var="msg" />
<f:view>
<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>SISDEP : Sistema de Informaci<h:outputText value="#{msg.tilde_o}" />n de Espacio P<h:outputText value="#{msg.tilde_u}" />blico</title>
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="stylesheet" href="<%=contextRoot%>/css/validationEngine.jquery.css" type="text/css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/template.css" type="text/css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/normalize.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/uniform.css"> <!-- estilos formularios -->
	<link rel="stylesheet" href="<%=contextRoot%>/css/cuerpo.css">
	<link rel="stylesheet" href="<%=contextRoot%>/css/richCustom.css">
</head>
<body>
<div id="marco"> <!--inicio contenedor --> 
<div class="arriba-cuerpo"></div> 
<div class="cuerpo">
<img src="<%= contextRoot %>/images/logos.png" />
<div class="clear"></div>
<!-- Menu y Usuario init() -->
	<%@ include file="../include/menuInterfaces.jsp" %>
<!-- Menu y Usuario end() -->
<div class="clear"></div>
<!-- Formulario --> 
<div id="buscador">
<h2>Consulta de Propiedades [Sistema CATASTRO]</h2>
<h:form id="checkPeopleRigthsForm">
<span class="botones right">
	<button type="reset" onclick="window.close();">Cerrar</button>
</span>	
<div class="clear"></div>
<span class="left">
	<label>N<h:outputText value="#{msg.tilde_u}" />mero de Documento de identidad<span class="asterisco"> * </span></label>
	<h:inputText id="document_ID" size="20" maxlength="15" styleClass="validate[required,custom[integer],minSize[8]]"
		value="#{integrationController.documentID}" />&nbsp;&nbsp;&nbsp;&nbsp;									
</span>
	<div class="clear">(<span class="asterisco"> * </span>) : Campo Obligatorio.</div>
	<div class="clear">
	<span class="botones left">
	<h:commandButton id="checkPeopleRigthsButton"
		  styleClass="botones"
          type="submit" 
          value="Consultar" 
          ondblclick="return false;" 
          action="#{integrationController.checkCatastroPropiedades}" >
	</h:commandButton>
	</span>
<span class="botones right">
	<h:commandButton id="resetQueryButton"
		  styleClass="botones"
          type="submit" 
          value="Limpiar Consultas..." 
          ondblclick="return false;" 
          action="#{integrationController.resetListModel}" >
	</h:commandButton>&nbsp;&nbsp;&nbsp;
</span>	
	</div>
</h:form>		
<div class="clear"></div> 
<div id="resultados">		
<h:form id="beneficiosSUBResultsForm">		
	  <span class="left">
		 <label>&nbsp;</label><h2>Resultados de la Consulta de Propiedades [CATASTRO]:</h2>
	  </span>
	  <rich:dataTable id="propiedadesCatastroData" styleClass="scrollerTable" headerClass="standardTable_Header"
                border="0" cellpadding="3" cellspacing="1" 
                footerClass="standardTable_Header" rowKeyVar="rowIndex"
                rowClasses="tablamultiregistrotr1,tablamultiregistrotr2"
                onRowMouseOver="this.style.backgroundColor='#C0C0C0'"
			    onRowMouseOut="this.style.backgroundColor='#FFFFFF'"
                var="itemVO" value="#{integrationController.propiedadesListModel}"
                rows="10" >
           <h:column>
               <f:facet name="header" ><h:outputText value="Nombre" /></f:facet>
               <h:outputText value="#{itemVO.nombre}" />
           </h:column>
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Nomenclatura Predio" />
               </f:facet>
               <h:outputText value="#{itemVO.nmMtclaPrdio}" />
           </h:column>
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Porcentaje Derecho" />
               </f:facet>
               <h:outputText value="#{itemVO.porcDerecho}" />
           </h:column>					           
           <h:column>
               <f:facet name="header">
                  <h:outputText value="CBML" />
               </f:facet>
               <h:outputText value="#{itemVO.cbml}" />
           </h:column>					           
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Direcci#{msg.tilde_o}n Principal" />
               </f:facet>
               <h:outputText value="#{itemVO.dsDirPrincipal}" />
           </h:column>
		   <h:column>
               <f:facet name="header">
                  <h:outputText value="Avaluo Total" />
               </f:facet>
               <h:outputText value="#{itemVO.vlAvaluoTotal}" />
           </h:column>					                      
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Estrato" />
               </f:facet>
               <h:outputText value="#{itemVO.cdEstrato}" />
           </h:column>
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Tipo de Uso" />
               </f:facet>
               <h:outputText value="#{itemVO.dsUsoTipo}" />
           </h:column>
           <h:column>
               <f:facet name="header">
                  <h:outputText value="Porcentaje Desenglobe" />
               </f:facet>
               <h:outputText value="#{itemVO.vlPtjeDeseng}" />
           </h:column>					           
        </rich:dataTable>
        <h:panelGrid columns="1" styleClass="tablapaginacion"
                           columnClasses="standardTable_ColumnCentered" >
            <rich:datascroller id="beneficiosSUBScroll"
                    for="propiedadesCatastroData"
                    fastStep="10"
                    pageIndexVar="pageIndex"
                    styleClass="scroller"
                    maxPages="10" >
                <f:facet name="first" >
                    <h:graphicImage url="/images/arrow-first.gif" />
                </f:facet>
                <f:facet name="last">
                    <h:graphicImage url="/images/arrow-last.gif" />
                </f:facet>
                <f:facet name="previous">
                    <h:graphicImage url="/images/arrow-previous.gif" />
                </f:facet>
                <f:facet name="next">
                    <h:graphicImage url="/images/arrow-next.gif" />
                </f:facet>
                <f:facet name="fastforward">
                    <h:graphicImage url="/images/arrow-ff.gif" />
                </f:facet>
                <f:facet name="fastrewind">
                    <h:graphicImage url="/images/arrow-fr.gif" />
                </f:facet>
            </rich:datascroller>
        </h:panelGrid>					        
</h:form>					
</div>
</div>
<!-- Fin formulario --> 

<div class="clear"></div>

</div>
<div class="abajo-cuerpo"></div> 
</div> <!-- Fin contenedor -->

<div class="footer"></div>

<script src="<%=contextRoot%>/js/jquery/lib/jquery-1.7.2.min.js"></script>
<script src="<%=contextRoot%>/js/jquery/lib/jquery.uniform.min.js"></script> <!-- formularios --> 
<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine-es.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=contextRoot%>/js/jquery/lib/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//Adicionar para no usar el signo $ en el JQuery con rich-faces.
//carlos.perez@consult-soft.com 30/12/2011
var jQ = jQuery.noConflict(); 

jQ(document).ready(function() {
	jQ("input, select, input:checkbox, input:radio, input:file").uniform();
	jQ("#checkPeopleRigthsForm").validationEngine('attach');
	jQ("#checkPeopleRigthsForm").bind("jqv.form.result", function(event, errorFound) {
        if(!errorFound) displayLoadingImage();
    });
});
  
</script>
<%@ include file="../include/validationStatus.jsp" %>
<%@ include file="../include/modalMessageWindow.jsp" %>
</body>
</html>
</f:view>
